﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;

namespace YL.Core.Entity
{
    [SugarTable("Meter_DeviceAlarmMonth")]
    public class DeviceAlarmMonth
    {
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public int MonthId { set; get; }
        /// <summary>
        /// 设备id
        /// </summary>
        public int DeviceId { set; get; }
        /// <summary>
        /// 报警数量
        /// </summary>
        public int AlarmCount { set; get; }
        /// <summary>
        /// 报警时长
        /// </summary>
        public double DurationMin { set; get; } = 0;
        /// <summary>
        /// 报警时长
        /// </summary>
        public double ConfirmTime { set; get; } = 0;
        /// <summary>
        /// 
        /// </summary>
        public int Year { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int Month { set; get; }
        /// <summary>
        /// 日期
        /// </summary>
        public DateTime Date { set; get; } = DateTime.Now;
    }
}
